package it.pennino.test.selenium.googletester;

import java.lang.reflect.Method;

import org.testng.annotations.DataProvider;

public class InputDataProvider {


	@DataProvider(name = "googleSearchInputDataProvider")
	public static Object[][] provideData(Method methodToServe) {
		Object[][] inputData = null;
		String methodName = methodToServe.getName();

		if (methodName.equals("performSearch")) {
			inputData = new Object[][] { 
					{ "Cheese!", "//*[@id=\"rso\"]/div[2]/li[1]/div/h3/a", "http://cheese.slowfood.it/"},
					{ "mariarita intorcia", "//*[@id=\"rso\"]/div[2]/li[1]/div/h3/a", "http://www.mariaritaintorcia.it/mr/Home.html" },
					{ "mariarita intorcia", "//*[@id=\"rso\"]/div[3]/li[1]/div/h3/a", "http://it.linkedin.com/pub/mariarita-intorcia/51/750/b75" } };
		} 
		
		return inputData;
	}
	
}
